﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class player : actionable
    {
        public string Player { get; set; }

        public player(string Player)
        {
            this.Player = Player;
        }

        public int fingerGuess(int p)
        {

            int Result;

            switch (p)
            {
                case 1:
                    Console.WriteLine(Player + ":出剪刀");//-1
                    Result = 1;
                    break;
                case 2:
                    Console.WriteLine(Player + ":出拳头");//0
                    Result = 2;
                    break;
                case 3:
                    Console.WriteLine(Player + ":出布");//1
                    Result = 3;
                    break;


                default:
                    Result = 1;
                    break;
            }

            return Result;
        }

    }
}
